export const shuffle = (arr: any[]) => {
  let index = -1, length = arr.length, lastIndex = length - 1;
  while(++index<length){
    const rand = index + Math.floor(Math.random()*(lastIndex-index+1));
    const temp = arr[rand];
    arr[rand] = arr[index];
    arr[index] = temp;
  }
  return arr;
}
